home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / easyc.arc / EASY2.H < prev   
Encoding:
C/C++ Source or Header  |  1980-01-01  |  1.1 KB  |  32 lines

  1. /* IF_THEN_ELSEIF_ELSE construct */
  2.  
  3. #define  IF(e)     { if(e)              /* if statment */
  4. #define  THEN      {              {     /* then statment */
  5. #define  ELSEIF(c) }  else if (e) {     /* elseif statment */
  6. #define  ELSE      }  else {            /* else statment */
  7. #define  ENDIF     ;}}                  /* end of if statment */
  8.  
  9. /* CASE construct */
  10.  
  11. #define  CASE(e)   { switch (e) {       /* head of case */
  12. #define  CASEOF(e) case e : {           /* case block */
  13. #define  DEFCASE   default : {          /* default case block */
  14. #define  ENDCOF    } BREAK ;            /* end of case block */
  15. #define  ENDCASE   }}                   /* end of case */
  16.  
  17. /* WHILE construct */
  18.  
  19. #define  WHILE(e)  { while (e) {        /* while statment */
  20. #define  ENDW      ;}}                  /* end of while statment */
  21.  
  22. /* FOR construct */
  23.  
  24. #define  FOR(e)    { for (e) {          /* for statment */
  25. #define  ENDF      ;}}                  /* end of for statment */
  26.  
  27. /* BEGIN_END construct */
  28.  
  29. #define  BEGIN     {                    /* beginning of block */
  30. #define  END       }                    /* end of block */
  31.  
  32.